package com.xuan.task.Mapper;

import com.xuan.task.domain.HomeworkStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface HomeworkStudentMapper {

    @Select(" select h.homework_id homeworkId ,h.is_complete isComplete,h.user_id userId,h.complete_time completeTime,u.user_name userName" +
            "  from homework_student h,user u" +
            " where h.user_id = u.user_id and homework_id =#{homeworkId}" )
    List<HomeworkStudent> getAllHomeworkStudentByHomeworkId(Integer homeworkId);


}
